/* norms.cpp
 *
 *	Copyright (C) 2008 CRIMERE
 *	Copyright (C) 2008 Jean-Marc Mercier
 *	
 *	This file is part of OTS (optimally transported schemes), an open-source library
 *	dedicated to scientific computing. http://code.google.com/p/optimally-transported-schemes/
 *
 *	CRIMERE makes no representations about the suitability of this
 *	software for any purpose. It is provided "as is" without express or
 *	implied warranty.
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
#include <src/math/norms.h>


namespace jmmath {

/*		  template <>
		  OS_double norm22<particle<OS_double>>( const particle<OS_double> & point_container) {
			return point_container * point_container;
		  };*/

		  OS_double moment1( const OS_double & from) {
			  return from;
		  };
		  OS_double sum( const OS_double & from) {
			  return from;
		  };
		  OS_double norm1( const OS_double & from) {
			  return std::abs(from);
		  };
		  OS_double norm_infty( const OS_double & from) {
			  return std::abs(from);
		  };
		  template<>
		  OS_double inf<OS_double>( const OS_double & value) {return value;};


 }
